//
//  TabFindViewController.m
//  TableBarControllerDemo
//
//  Created by 边果互动 on 2021/3/15.
//

#import "TabFindViewController.h"
#import "BGViewPager.h"

@interface TabFindViewController ()

@end

@implementation TabFindViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSArray *barItems = @[@"bar1", @"bar2", @"bar3", @"bar4", @"bar5"];
    BGViewPager *viewPager = [[BGViewPager alloc] initWithBarItems:barItems];
    viewPager.frame = CGRectMake(0, NavBarHeight, ScreenWidth, ScreenHeight);
    [self.view addSubview:viewPager];
    
    for (int i = 0; i < 5; i++) {
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(150 + ScreenWidth * i, 200, ScreenWidth, ScreenWidth)];
        label.text = @"pager";
        label.textColor = [UIColor orangeColor];
        [viewPager addPager:label];
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
